package main

import (
	"fmt"
)

/**
 * @author: guangcheng
 * @date:   2020/11/5 13:53
 * @version  V1.0
 * @description:
 *
 */
func main() {

	var str string = "hello,world!"
	for i := 0; i < len(str); i++ {

		fmt.Printf("\n%c", str[i])
	}

	fmt.Println()

	str = "abc~ok"
	for index, val := range str {
		fmt.Printf("index=%d, val=%c \n", index, val)

	}

}
